#ifndef TAB_WIDGET_H
#define TAB_WIDGET_H

#include <QWidget>
#include <QXmppMessage.h>
#include <QListWidget>

namespace Ui {
    class tab_widget;
}

class TabWidget : public QWidget {
    Q_OBJECT
    QString buddyName;
public:
    TabWidget(const QString &buddyName, QWidget *parent = 0);
    ~TabWidget();
    QListWidget *historico();
protected:
    void changeEvent(QEvent *e);

private:
    Ui::tab_widget *ui;

private slots:
    void on_txt_chatBuddy_textChanged();
    void on_b_send_buddy_clicked();
    void on_b_close_clicked();
    void onChatText(const QString &body,const QString &from);

signals:
    void privateMessage(QString, QString);
};

#endif // TAB_WIDGET_H
